<?php
return defined('REDIS_QUEUE_PWD') && REDIS_QUEUE_PWD ?
    [
        'class' => '\yii\redis\Connection',
        'hostname' => REDIS_QUEUE_HOST,
        'port' => 6379,
        'password' => REDIS_QUEUE_PWD,
        'database' => REDIS_QUEUE_DATABASE
    ] :
    [
        'class' => '\yii\redis\Connection',
        'hostname' => REDIS_QUEUE_HOST,
        'port' => 6379,
        'database' => REDIS_QUEUE_DATABASE
    ];
